package com.byedu.mapper.course;

import java.util.List;

import com.byedu.domain.course.CourseCount;
import com.byedu.domain.course.CourseDO;
import org.springframework.stereotype.Repository;

/**
 * Created by chenxigui on 2017/4/25.
 */
@Repository
public interface CourseMapper {
    /**
     * @description 获取课程列表
     * @author chenxigui
     * @param userId
     * @return
     */
    List<CourseDO> listCoursesByUserId(String userId);

    List<CourseDO> listCourses();

    List<CourseDO> listCoursesbyIndustry(String industry);

    List<CourseDO> listhotCoursesByUserId();
    /**
     * 获取课程详情
     * @param courseId
     * @return
     */
    CourseDO getCourseById(String courseId);

    List<CourseCount> countCourseLibraris();

    int saveCourse(CourseDO courseDO);

    int delCourse(int id);
}
